math: rename storage flag real -> f64 (real kept as alias)#9
Merged
Conversation
… alias) Introduce `f64` as the canonical name for the binary64-backed storage flag and keep `real` as a bit-identical deprecated alias for one release. This frees the `real` name and sets up the sibling `f32` (binary32 storage) coming next; it also reflects that the flag is purely a STORAGE choice (transcendentals gate on snap). - policy_flag.hpp: `f64` is the flag (formerly `real`'s bits, unchanged); `real` is now `inline static constexpr policy_flag real = f64;`. Because the value is identical, every existing `has_flag(P, real)` / `| real` site — 27 test/example files and all library internals — compiles unchanged. - Tests: f64 selects the same double-backed raw as real and the two are the same flag (test_storage_flags.cpp). - Docs: policies.md + math.md present `f64` as canonical, `real` as deprecated. Behavior-identical; no internal `real_raw`/storage renames yet — those land with the f32 storage backend (next PR), where the f64/f32 pairing motivates them. Verified: default 405/405, CORDIC 442/442, FLOAT 396/396. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 4b (part 2a) — rename
real→f64Introduces
f64as the canonical name for the binary64-backed storage flag, withrealkept as a bit-identical deprecated alias for one release. This frees therealname and sets up the siblingf32(binary32 storage) coming in the next PR. It also reflects what the flag actually is — a storage choice — now that transcendentals gate onsnap, not on it.Behavior-identical
policy_flag real = f64;— same value, so every existinghas_flag(P, real)/| realsite (27 test/example files + all library internals) compiles unchanged. No functional change.f64is the flag;realis the alias.f64selects the same double-backed raw asreal, and they are the same flag.f64as canonical,realas deprecated.Internal
real_raw/store_realrenames are deferred to thef32PR, where thef64/f32pairing motivates them.Verified: default 405/405, CORDIC 442/442, FLOAT 396/396.
🤖 Generated with Claude Code